xen/device_tree: introduce find_compatible_node
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 15 Feb 2013 13:32:18 +0000 (13:32 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 15 Feb 2013 13:32:18 +0000 (13:32 +0000)
commitea40403e1c493848ed30a433550b564191be46bd
treef15c5441a81a9c9baa66861cccd277777bf6cc48
parent92b31a9099c3ba4ce7910e5a2ee5f36dbb8b336e
xen/device_tree: introduce find_compatible_node

Introduce a find_compatible_node function that can be used by device
drivers to find the node corresponding to their device in the device
tree.

Initialize device_tree_flattened early in start_xen, so that it is
available before setup_mm. Get rid of fdt in the process.

Also add device_tree_node_compatible to device_tree.h, that is currently
missing.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc - s/atag_paddr/fdt_paddr ]
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/setup.c
xen/common/device_tree.c
xen/include/xen/device_tree.h